package org.example.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @TableName d_role
 */
@TableName(value ="d_role")
@Data
@Schema(name = "角色DRole" ,description = "角色对象")
public class DRole implements Serializable {

    @Schema(description = "角色Id")
    @TableId
    private Integer roleId;

    @Schema(description = "角色姓名")
    private String roleName;

    @Schema(description = "角色描述")
    private String roleDescription;

    @Schema(description = "角色类型")
    private String roleType;

    @Schema(description = "更新时间")
    private Date updateDate;

    @Schema(description = "角色状态")
    private Integer roleStatus;

    @Schema(description = "角色拥有的权限")
    @TableField(exist = false)
    private List<Integer> powersId;

    private static final long serialVersionUID = 1L;
}